package cn.mazexal.examapi.models.redisKeys;

import lombok.Data;

/**
 * @author: Mazexal
 * Date: 2025/5/25
 */
@Data
public class RedisExamKey {

    private static final String PREFIX = "exam:";

    public static String getUserCommitExamKey(Long examId, Long userId){
        return PREFIX + "userCommitExam:" + examId + ":" + userId;
    }

    public static String getExamByMenuIdKey(Long userId, Long menuId){
        return PREFIX + "examByMenuId:" + userId + ":" + menuId;
    }
}
